<?php
require_once "class/mysql_connect.php";
require_once "class/function_curl.php";
require_once "class/function_cutwords.php";


set_time_limit(0);
$time = time();
$now_day = date(Ymd);



//抓取数据
$res = get_url("http://go.huanqiu.com/news/");


$res = str_substr("<div class=\"listNews\">", "</div>", $res);



echo htmlspecialchars("/<li>(.+?)<\/li>/");
exit();




//输出列表页链接
preg_match_all("/<li>(.+?)<\/li>/", $res, $page);




foreach ($page[1] as $outpage) {
	
	$outpage = str_substr("href=\"", "\"", $outpage);
	//echo $outpage."\n";
	echo $outpage."<br/>";

		
}





echo "<font color='red'>列表全部完成！</font><br/>";


